import { Component, OnInit, inject } from '@angular/core';
import { SplitterModule } from 'primeng/splitter';
import { MapCanvas } from './map-canvas/map-canvas';
import { UserData } from './user-data/user-data';
import { TrackEdit } from './track-edit/track-edit';
import { TrackInfo } from './track-info/track-info';
import { TrackChart } from './track-chart/track-chart';
import { TauriService } from './service/tauri.service';

@Component({
    selector: 'app-home',
    imports: [SplitterModule, MapCanvas, UserData, TrackEdit, TrackInfo, TrackChart],
    templateUrl: './home.html',
})
export class Home implements OnInit {
    tauriService = inject(TauriService);

    ngOnInit(): void {
    }

    open_source_homepage() {
        this.tauriService.open_source_homepage();
    }

}
